//
//  TrainInfoCell.m
//  laowu
//
//  Created by Northwan on 15/4/29.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "TrainInfoCell.h"

@implementation TrainInfoCell

+(instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    
    static  NSString  *CellIdentiferId = @"TrainInfoCell";
    TrainInfoCell  *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if (cell == nil) {
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"TrainInfoCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

-(void)initData:(TrainInfoResult *)result{
    [_titleLabel setText:result.train_title];
    [_companyLabel setText:result.organization];
    [_salaryLabel setText:[NSString stringWithFormat:@"%@元",result.train_fee]];
}

@end
